﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AssetManagementSystem.Utils;
using AssetManagementSystem.Model.IDao;

namespace AssetManagementSystem.Model {
    class SysPropertyManager {

        ISysPropertyDAO dao;

        public SysPropertyManager() {
            //get the group dao
            dao = DAOManager.GetSysPropertyDAO();
        }

        //====================================================================
        //  STANDARD CRUD METHODS
        //====================================================================

        public void CreateProperty(string property, string value) {
            dao.CreateProperty(property, value);
        }

        public Dictionary<string, string> GetAllProperties() {
            return dao.GetAllProperties();
        }

        public string GetProperty(string property) {
            return dao.GetProperty(property);
        }

        public void UpdateProperty(string property, string value) {
            dao.UpdateProperty(property, value);
        }

        public void DeleteProperty(string property) {
            dao.DeleteProperty(property);
        }
    }
}
